package com.school.test.search.utils;

/**
 * @author 马洁
 * @date 2020/1/2 - 13:54
 */
public class MyStrUtil {
    /**
     * 去除首尾字符
     * @param object 任意对象
     */
    public static String delHeadAndTail(Object object) {
        String str = object.toString();

        return str.substring(1, str.length() - 1);
    }

    /**
     * 是否为不为空的字符串
     */
    public static boolean isNotBracketStr(Object object) {
        return object != null && !"".equals(object.toString().trim());
    }
}
